package com.taikang.common.util;

import java.util.ArrayList;

public class PointUtils {

	
	public static String pointCut(String word)
	{
	        char[] chs = word.toCharArray();
	        ArrayList<Character> list = new ArrayList<Character>();
	        for (int i = 0; i < chs.length; i++) {
	        	 System.out.println(Character.getType(chs[i]));
	            if (Character.getType(chs[i]) == 5 || Character.getType(chs[i]) == 2|| Character.getType(chs[i]) == 1) {
	                list.add(chs[i]);
	            }
	        }
	        char[] newchs = new char[list.size()];
	        for (int i = 0; i < newchs.length; i++) {
	            newchs[i] = list.get(i);
	        }
	        String out = new String(newchs);
	        System.out.println(out);
	        return out;
	 }
	
	public  static void main(String args[])
	{
		String con="你好！hello！,,,...AAA";
		String content1= pointCut(con);
	    System.out.println(content1);
	}
}
